package leetcode;

public class Test0014 {
    public static String run(){
        String[] list={"",""};
        String result="";
        //
        if(list.length==1){
            return list[0];
        }
        if(list.length==0){
            return "";
        }
        //
        int length=list[0].length();

        //遍历第j个字符
        for(int j=0;j<length;j++){
            //遍历所有的字符串
            for(int i=0;i<list.length;i++) {
                if (list[i].length()<=j || list[i].charAt(j) != list[0].charAt(j)) {
                    System.out.println(result);
                    return result;
                }
            }

            result += list[0].charAt(j);
        }

        System.out.println(result);

        return result;

    }
}
